package io.renren.modules.oatools.utils.http_tepm;


import io.renren.modules.oatools.dto.CallOrderSendDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;

public class OAHttpService {
    private static final Logger logger = LoggerFactory.getLogger(OAHttpService.class);

    public static void main(String[] args) {
        OAHttpRequestInterface requestInterface = new OAHttpRequestInterface();

        String upResponseBody = null;
        CallOrderSendDTO requestSend = new CallOrderSendDTO();
        requestSend.setRequestUrl("http://localhost:8080/renren-admin/oatools/system/page?order=&orderField=&page=1&limit=10");
        requestSend.setRequestHeaders("{\"JSESSIONID\":\"f8bd5135-d0c6-4a0b-888d-e683023ce79c\"}");
        try {
            boolean b = requestInterface.requestSend(upResponseBody, requestSend);
            System.out.println(b);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}